import request from '@/utils/request'

// 查询后台销量数据维护列表
export function listSafeSaleInfo(query) {
    return request({
        url: '/SafeSaleInfo/SafeSaleInfo/list',
        method: 'get',
        params: query
    })
}

// 查询后台销量数据维护详细
export function getSafeSaleInfo(id) {
    return request({
        url: '/SafeSaleInfo/SafeSaleInfo/' + id,
        method: 'get'
    })
}

// 新增后台销量数据维护
export function addSafeSaleInfo(data) {
    return request({
        url: '/SafeSaleInfo/SafeSaleInfo',
        method: 'post',
        data: data
    })
}

// 修改后台销量数据维护
export function updateSafeSaleInfo(data) {
    return request({
        url: '/SafeSaleInfo/SafeSaleInfo',
        method: 'put',
        data: data
    })
}

// 删除后台销量数据维护
export function delSafeSaleInfo(id) {
    return request({
        url: '/SafeSaleInfo/SafeSaleInfo/' + id,
        method: 'delete'
    })
}
